package be.telio.freeagent.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;

@XmlRootElement(name = "bill")
public class FABill implements FAEntity
{
    @XmlElement(name = "bill-type")
    public String billType;
    @XmlElement(name = "cached-paid-value")
    public Double cachedPaidValue;
    @XmlElement(name = "comment")
    public String comment;
    @XmlElement(name = "contact-id")
    public Integer contactId;
    @XmlElement(name = "dated-on")
    public Date datedOn;
    @XmlElement(name = "depreciation-schedule")
    public String depreciationSchedule;
    @XmlElement(name = "due-date")
    public Date dueDate;
    @XmlElement(name = "id")
    public Integer id;
    @XmlElement(name = "manual-sales-tax-amount")
    public Double manualSalesTaxAmount;
    @XmlElement(name = "rebill-to-project-id")
    public Integer rebillToProjectId;
    @XmlElement(name = "rebilled-on-invoice-item-id")
    public Integer rebilledOnInvoiceItemId;
    @XmlElement(name = "recurring")
    public Boolean recurring;
    @XmlElement(name = "recurring-end-date")
    public Date recurringEndDate;
    @XmlElement(name = "reference")
    public String reference;
    @XmlElement(name = "sales-tax-rate")
    public Double salesTaxRate;
    @XmlElement(name = "second-sales-tax-rate")
    public Double secondSalesTaxRate;
    @XmlElement(name = "total-value")
    public Double totalValue;

    public String getEntityListName()
    {
        return "bills";
    }

    public Integer getId()
    {
        return id;
    }
}
